<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibCDS: BinaryHeap Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LibCDS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structBinaryHeap.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">BinaryHeap Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The implementation for binary heap.  
 <a href="structBinaryHeap.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a9a535a1a1297d498116580f97e34345a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="binary__heap_8h.html#aa4c4d2dc5b9c20401147c41ae60628d8">BinHeapData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#a9a535a1a1297d498116580f97e34345a">pData</a></td></tr>
<tr class="memdesc:a9a535a1a1297d498116580f97e34345a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The container private information.  <a href="#a9a535a1a1297d498116580f97e34345a">More...</a><br/></td></tr>
<tr class="separator:a9a535a1a1297d498116580f97e34345a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9a5df37e395123ba994842204dcb6d3"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#ad9a5df37e395123ba994842204dcb6d3">push</a> )(struct _BinaryHeap *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>)</td></tr>
<tr class="memdesc:ad9a5df37e395123ba994842204dcb6d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push an item onto the heap.  <a href="#ad9a5df37e395123ba994842204dcb6d3">More...</a><br/></td></tr>
<tr class="separator:ad9a5df37e395123ba994842204dcb6d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3a74179585569c1cdb25c8abc52b6e5"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#ae3a74179585569c1cdb25c8abc52b6e5">top</a> )(struct _BinaryHeap *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:ae3a74179585569c1cdb25c8abc52b6e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve item from top of the heap.  <a href="#ae3a74179585569c1cdb25c8abc52b6e5">More...</a><br/></td></tr>
<tr class="separator:ae3a74179585569c1cdb25c8abc52b6e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ee311cc07d450172c33d38223cf6c68"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#a6ee311cc07d450172c33d38223cf6c68">pop</a> )(struct _BinaryHeap *)</td></tr>
<tr class="memdesc:a6ee311cc07d450172c33d38223cf6c68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete item from top of the heap.  <a href="#a6ee311cc07d450172c33d38223cf6c68">More...</a><br/></td></tr>
<tr class="separator:a6ee311cc07d450172c33d38223cf6c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a028243c71989e01ff0eb0a0ff5819587"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#a028243c71989e01ff0eb0a0ff5819587">size</a> )(struct _BinaryHeap *)</td></tr>
<tr class="memdesc:a028243c71989e01ff0eb0a0ff5819587"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of stored items.  <a href="#a028243c71989e01ff0eb0a0ff5819587">More...</a><br/></td></tr>
<tr class="separator:a028243c71989e01ff0eb0a0ff5819587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad21e01f66edbe40bc3ef93d48cf28744"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#ad21e01f66edbe40bc3ef93d48cf28744">set_compare</a> )(struct _BinaryHeap *, int32_t(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td></tr>
<tr class="memdesc:ad21e01f66edbe40bc3ef93d48cf28744"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom item comparison method.  <a href="#ad21e01f66edbe40bc3ef93d48cf28744">More...</a><br/></td></tr>
<tr class="separator:ad21e01f66edbe40bc3ef93d48cf28744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebf8b950bdf597a81e1b58a96035d09e"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBinaryHeap.html#aebf8b950bdf597a81e1b58a96035d09e">set_destroy</a> )(struct _BinaryHeap *, void(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td></tr>
<tr class="memdesc:aebf8b950bdf597a81e1b58a96035d09e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom item resource clean method.  <a href="#aebf8b950bdf597a81e1b58a96035d09e">More...</a><br/></td></tr>
<tr class="separator:aebf8b950bdf597a81e1b58a96035d09e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation for binary heap. </p>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00014">14</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="a9a535a1a1297d498116580f97e34345a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="binary__heap_8h.html#aa4c4d2dc5b9c20401147c41ae60628d8">BinHeapData</a>* BinaryHeap::pData</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The container private information. </p>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00016">16</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad9a5df37e395123ba994842204dcb6d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::push)(struct _BinaryHeap *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Push an item onto the heap. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#a21794f7e5f2e815b933caf49e47c42f0" title="Push an item onto the heap. ">BinHeapPush</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00020">20</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae3a74179585569c1cdb25c8abc52b6e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::top)(struct _BinaryHeap *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve item from top of the heap. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#ab0afc247af5c219f40b72ee59af570fb" title="Retrieve item from top of the heap. ">BinHeapTop</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00024">24</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6ee311cc07d450172c33d38223cf6c68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::pop)(struct _BinaryHeap *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete item from top of the heap. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#adfb4ae99a9f7d933cb176fcb34a430d1" title="Delete item from top of the heap. ">BinHeapPop</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00028">28</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="a028243c71989e01ff0eb0a0ff5819587"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::size)(struct _BinaryHeap *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the number of stored items. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#ad0ef624bba84217271ec6c73d7157ce8" title="Return the number of stored items. ">BinHeapSize</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00032">32</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad21e01f66edbe40bc3ef93d48cf28744"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::set_compare)(struct _BinaryHeap *, int32_t(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom item comparison method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#aa6796530bcbc87edd21e7357d698a880" title="Set the custom item comparison method. ">BinHeapSetCompare</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00036">36</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
<a class="anchor" id="aebf8b950bdf597a81e1b58a96035d09e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* BinaryHeap::set_destroy)(struct _BinaryHeap *, void(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom item resource clean method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="binary__heap_8h.html#a7283698662c8956ea28c17007be8a0f2" title="Set the custom item resource clean method. ">BinHeapSetDestroy</a> </dd></dl>

<p>Definition at line <a class="el" href="binary__heap_8h_source.html#l00040">40</a> of file <a class="el" href="binary__heap_8h_source.html">binary_heap.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structBinaryHeap.html">BinaryHeap</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
